Repository navigation
docs(alb): correct and expand ALB authentication and identity docs - #174
Open
dlotterman wants to merge 3 commits into
Open
dlotterman wants to merge 3 commits into
dlotterman wants to merge 3 commits into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
scotwells
requested changes
Nov 25, 2026
scotwells
left a comment
Contributor
There was a problem hiding this comment.
Several statements would send a reader to the wrong fix, and one leaves a path unprotected without saying so.
- Secret label and
500: the operator now addsnetworking.datumapis.com/gateway-syncto any Secret a SecurityPolicy references, so a missing label no longer causes a500, anddatumctl alb auth setdoesn't add it either. A policy naming a Secret that doesn't exist is held from the edge withAccepted=False/PendingSecret, and a new route policy in that state leaves requests unauthenticated. Replace the "label or 500" warnings and troubleshooting rows (overview, basic-auth, api-keys, oidc, oidc-google, oidc-auth0) with "check the SecurityPolicy forPendingSecret", and say requests aren't protected until it clears. - Per-path routes skip the HTTPS redirect: the added
/apiroute wins over the load balancer's force-HTTPS rule (longest prefix beats a header match), sohttp://HOST/apiis served in cleartext, keys included. Add anx-forwarded-proto: httpredirect rule to the new route in Step 2, or call out the gap. - OIDC defaults:
refreshTokendefaults totrue./logoutis active even whenlogoutPathisn't set, and for providers that publishend_session_endpoint(Keycloak, Okta, Entra, Auth0) it also signs the person out of the provider. Only Google matches the current wording. - CORS:
*inallowOriginsmatches any characters, dots included, sohttps://*.example.comalso allows deeper subdomains. - Google troubleshooting: "
openidscope missing" can't cause a401, becauseopenidis always added (asoidc.mdxsays). Drop that row.
Fix wrong or incomplete auth information, verified live against the ALB on 2026-11-18: - Google OIDC can be limited to a Workspace domain or listed people with a jwt block on the ID token cookie plus authorization rules; it is not "anyone with a Google account" only. - oidc + jwt in one policy works; drop the Auth0 warning that it causes a 500, and the advice to remove the WAF. - datumctl alb auth set attaches to the Gateway; a route-level policy silently replaces it while alb describe still reports it enabled. - alb describe doesn't show hand-written policies or added routes. - One SecurityPolicy per route; a second is rejected as Conflicted. - Basic Auth forwards the Authorization header (with password) to the origin; forwardUsernameHeader and per-user passwords are supported. Add pages for API keys, JWT, generic OIDC (any provider), authorization rules, CORS, and per-path authentication, and list what isn't available (mTLS, extAuth, provider retries, GeoIP, auth metrics).
Secrets no longer need the gateway-sync label; document PendingSecret instead of 500. Add HTTPS redirect to the per-path route, correct OIDC refreshToken/logout defaults and the CORS wildcard description, and drop the incorrect Google openid troubleshooting row.
dlotterman
force-pushed
the
docs/alb-auth-identity
branch
from
November 30, 2026 16:26
f8d05ce to
ad9f538
Compare
Contributor
Author
|
@scotwells ty, I think comments addressed. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrects the ALB authentication pages and documents what the ALB's
SecurityPolicyalready supports beyond Basic Auth, Google, and Auth0. Examples were validated with server-side dry-runs, and most were tested live on throwaway load balancers.Corrections
jwtblock that reads the ID-token cookie (cookieNames.idToken+extractFrom.cookies) and anauthorizationrule on thehdclaim to allow only your Workspace domain, or onemailfor named people. Others can still sign in with Google but get403at the edge. See "Restrict who can sign in" inoidc-google.mdx.jwt+oidcin one policy causes a 500 (it works, including with Google as the issuer), and the advice to remove the WAF when OIDC fails.datumctl alb auth setattaches to the Gateway. A route-level policy (even CORS-only) replaces it for that route, andalb describestill reports Basic Auth as enabled.alb describedoesn't show hand-written policies or added routes.SecurityPolicy; a second is rejected asConflicted.Authorizationheader, password included, to the origin. Per-user passwords andforwardUsernameHeaderare now documented.New pages
API keys, JWT, OIDC with any provider, authorization rules, CORS, and per-path authentication. The overview now lists what isn't available: client certificates (mTLS),
extAuth, retries to the identity provider, location rules, and auth metrics.OIDC
logoutPath,passThroughAuthHeader(a valid bearer token skips sign-in), anddenyRedirect(401instead of a redirect for JSON requests) were tested live.refreshTokenis described from Envoy Gateway's reference.Needs a check before merge
oidc.mdxtells readers to host their identity provider outside Datum, because an issuer behind a Datum ALB failed about half of token exchanges in testing. Engineering may want to confirm before this is public.Platform bugs found (documented as known issues)
alb auth unset/alb deleteleave theALB_NAME-basic-authSecret behind without itsgateway-synclabel but with thegateway-resource-replicatorfinalizer, so deleting it hangs inTerminating.alb deleteleaves hand-addedHTTPRoutes orphaned.Should merge cleanly with #173, which touches
docs.jsonand the ALB overview pages.